/* WARNING: This is a generated file.
 * Any manual changes will be overwritten. */

#include "ua_namespace_fordiacNamespace.h"

/* DatatypeTest - ns=1;i=13 */

static UA_StatusCode function_ua_namespace_fordiacNamespace_0_begin(UA_Server *server, UA_UInt16 *ns) {
  UA_StatusCode retVal = UA_STATUSCODE_GOOD;
  UA_DataTypeAttributes attr = UA_DataTypeAttributes_default;
  attr.displayName = UA_LOCALIZEDTEXT("", "DatatypeTest");
  retVal |= UA_Server_addNode_begin(
      server, UA_NODECLASS_DATATYPE, UA_NODEID_NUMERIC(ns[1], 13LU), UA_NODEID_NUMERIC(ns[0], 22LU),
      UA_NODEID_NUMERIC(ns[0], 45LU), UA_QUALIFIEDNAME(ns[1], "DatatypeTest"), UA_NODEID_NULL,
      (const UA_NodeAttributes *) &attr, &UA_TYPES[UA_TYPES_DATATYPEATTRIBUTES], NULL, NULL);
  return retVal;
}

static UA_StatusCode function_ua_namespace_fordiacNamespace_0_finish(UA_Server *server, UA_UInt16 *ns) {
  return UA_Server_addNode_finish(server, UA_NODEID_NUMERIC(ns[1], 13LU));
}

/* Default JSON - ns=1;i=30 */

static UA_StatusCode function_ua_namespace_fordiacNamespace_1_begin(UA_Server *server, UA_UInt16 *ns) {
  UA_StatusCode retVal = UA_STATUSCODE_GOOD;
  UA_ObjectAttributes attr = UA_ObjectAttributes_default;
  attr.displayName = UA_LOCALIZEDTEXT("", "Default JSON");
  retVal |= UA_Server_addNode_begin(
      server, UA_NODECLASS_OBJECT, UA_NODEID_NUMERIC(ns[1], 30LU), UA_NODEID_NUMERIC(ns[0], 0LU),
      UA_NODEID_NUMERIC(ns[0], 0LU), UA_QUALIFIEDNAME(ns[0], "Default JSON"), UA_NODEID_NUMERIC(ns[0], 76LU),
      (const UA_NodeAttributes *) &attr, &UA_TYPES[UA_TYPES_OBJECTATTRIBUTES], NULL, NULL);
  retVal |= UA_Server_addReference(server, UA_NODEID_NUMERIC(ns[1], 30LU), UA_NODEID_NUMERIC(ns[0], 38LU),
                                   UA_EXPANDEDNODEID_NUMERIC(ns[1], 13LU), false);
  return retVal;
}

static UA_StatusCode function_ua_namespace_fordiacNamespace_1_finish(UA_Server *server, UA_UInt16 *ns) {
  return UA_Server_addNode_finish(server, UA_NODEID_NUMERIC(ns[1], 30LU));
}

/* Default XML - ns=1;i=22 */

static UA_StatusCode function_ua_namespace_fordiacNamespace_2_begin(UA_Server *server, UA_UInt16 *ns) {
  UA_StatusCode retVal = UA_STATUSCODE_GOOD;
  UA_ObjectAttributes attr = UA_ObjectAttributes_default;
  attr.displayName = UA_LOCALIZEDTEXT("", "Default XML");
  retVal |= UA_Server_addNode_begin(
      server, UA_NODECLASS_OBJECT, UA_NODEID_NUMERIC(ns[1], 22LU), UA_NODEID_NUMERIC(ns[0], 0LU),
      UA_NODEID_NUMERIC(ns[0], 0LU), UA_QUALIFIEDNAME(ns[0], "Default XML"), UA_NODEID_NUMERIC(ns[0], 76LU),
      (const UA_NodeAttributes *) &attr, &UA_TYPES[UA_TYPES_OBJECTATTRIBUTES], NULL, NULL);
  retVal |= UA_Server_addReference(server, UA_NODEID_NUMERIC(ns[1], 22LU), UA_NODEID_NUMERIC(ns[0], 38LU),
                                   UA_EXPANDEDNODEID_NUMERIC(ns[1], 13LU), false);
  return retVal;
}

static UA_StatusCode function_ua_namespace_fordiacNamespace_2_finish(UA_Server *server, UA_UInt16 *ns) {
  return UA_Server_addNode_finish(server, UA_NODEID_NUMERIC(ns[1], 22LU));
}

/* Default Binary - ns=1;i=14 */

static UA_StatusCode function_ua_namespace_fordiacNamespace_3_begin(UA_Server *server, UA_UInt16 *ns) {
  UA_StatusCode retVal = UA_STATUSCODE_GOOD;
  UA_ObjectAttributes attr = UA_ObjectAttributes_default;
  attr.displayName = UA_LOCALIZEDTEXT("", "Default Binary");
  retVal |= UA_Server_addNode_begin(
      server, UA_NODECLASS_OBJECT, UA_NODEID_NUMERIC(ns[1], 14LU), UA_NODEID_NUMERIC(ns[0], 0LU),
      UA_NODEID_NUMERIC(ns[0], 0LU), UA_QUALIFIEDNAME(ns[0], "Default Binary"), UA_NODEID_NUMERIC(ns[0], 76LU),
      (const UA_NodeAttributes *) &attr, &UA_TYPES[UA_TYPES_OBJECTATTRIBUTES], NULL, NULL);
  retVal |= UA_Server_addReference(server, UA_NODEID_NUMERIC(ns[1], 14LU), UA_NODEID_NUMERIC(ns[0], 38LU),
                                   UA_EXPANDEDNODEID_NUMERIC(ns[1], 13LU), false);
  return retVal;
}

static UA_StatusCode function_ua_namespace_fordiacNamespace_3_finish(UA_Server *server, UA_UInt16 *ns) {
  return UA_Server_addNode_finish(server, UA_NODEID_NUMERIC(ns[1], 14LU));
}

/* fordiacNamespace - ns=1;i=23 */
static const UA_Byte variablenode_ns_1_i_23_variant_DataContents_byteArray[1085] = {
    60,  120, 115, 58,  115, 99,  104, 101, 109, 97,  13,  10,  32,  32,  120, 109, 108, 110, 115, 58,  120, 115, 61,
    34,  104, 116, 116, 112, 58,  47,  47,  119, 119, 119, 46,  119, 51,  46,  111, 114, 103, 47,  50,  48,  48,  49,
    47,  88,  77,  76,  83,  99,  104, 101, 109, 97,  34,  13,  10,  32,  32,  120, 109, 108, 110, 115, 58,  117, 97,
    61,  34,  104, 116, 116, 112, 58,  47,  47,  111, 112, 99,  102, 111, 117, 110, 100, 97,  116, 105, 111, 110, 46,
    111, 114, 103, 47,  85,  65,  47,  50,  48,  48,  56,  47,  48,  50,  47,  84,  121, 112, 101, 115, 46,  120, 115,
    100, 34,  13,  10,  32,  32,  120, 109, 108, 110, 115, 58,  116, 110, 115, 61,  34,  104, 116, 116, 112, 115, 58,
    47,  47,  103, 105, 116, 46,  101, 99,  108, 105, 112, 115, 101, 46,  111, 114, 103, 47,  52,  100, 105, 97,  99,
    47,  111, 114, 103, 46,  101, 99,  108, 105, 112, 115, 101, 46,  52,  100, 105, 97,  99,  34,  13,  10,  32,  32,
    116, 97,  114, 103, 101, 116, 78,  97,  109, 101, 115, 112, 97,  99,  101, 61,  34,  104, 116, 116, 112, 115, 58,
    47,  47,  103, 105, 116, 46,  101, 99,  108, 105, 112, 115, 101, 46,  111, 114, 103, 47,  52,  100, 105, 97,  99,
    47,  111, 114, 103, 46,  101, 99,  108, 105, 112, 115, 101, 46,  52,  100, 105, 97,  99,  34,  13,  10,  32,  32,
    101, 108, 101, 109, 101, 110, 116, 70,  111, 114, 109, 68,  101, 102, 97,  117, 108, 116, 61,  34,  113, 117, 97,
    108, 105, 102, 105, 101, 100, 34,  13,  10,  62,  13,  10,  32,  32,  60,  120, 115, 58,  105, 109, 112, 111, 114,
    116, 32,  110, 97,  109, 101, 115, 112, 97,  99,  101, 61,  34,  104, 116, 116, 112, 58,  47,  47,  111, 112, 99,
    102, 111, 117, 110, 100, 97,  116, 105, 111, 110, 46,  111, 114, 103, 47,  85,  65,  47,  50,  48,  48,  56,  47,
    48,  50,  47,  84,  121, 112, 101, 115, 46,  120, 115, 100, 34,  32,  47,  62,  13,  10,  13,  10,  32,  32,  60,
    120, 115, 58,  99,  111, 109, 112, 108, 101, 120, 84,  121, 112, 101, 32,  110, 97,  109, 101, 61,  34,  68,  97,
    116, 97,  116, 121, 112, 101, 84,  101, 115, 116, 34,  62,  13,  10,  32,  32,  32,  32,  60,  120, 115, 58,  115,
    101, 113, 117, 101, 110, 99,  101, 62,  13,  10,  32,  32,  32,  32,  32,  32,  60,  120, 115, 58,  101, 108, 101,
    109, 101, 110, 116, 32,  110, 97,  109, 101, 61,  34,  78,  97,  109, 101, 34,  32,  116, 121, 112, 101, 61,  34,
    120, 115, 58,  115, 116, 114, 105, 110, 103, 34,  32,  109, 105, 110, 79,  99,  99,  117, 114, 115, 61,  34,  48,
    34,  32,  110, 105, 108, 108, 97,  98,  108, 101, 61,  34,  116, 114, 117, 101, 34,  32,  47,  62,  13,  10,  32,
    32,  32,  32,  32,  32,  60,  120, 115, 58,  101, 108, 101, 109, 101, 110, 116, 32,  110, 97,  109, 101, 61,  34,
    65,  103, 101, 34,  32,  116, 121, 112, 101, 61,  34,  120, 115, 58,  98,  121, 116, 101, 34,  32,  109, 105, 110,
    79,  99,  99,  117, 114, 115, 61,  34,  48,  34,  32,  47,  62,  13,  10,  32,  32,  32,  32,  32,  32,  60,  120,
    115, 58,  101, 108, 101, 109, 101, 110, 116, 32,  110, 97,  109, 101, 61,  34,  73,  115, 82,  101, 103, 105, 115,
    116, 101, 114, 101, 100, 34,  32,  116, 121, 112, 101, 61,  34,  120, 115, 58,  98,  111, 111, 108, 101, 97,  110,
    34,  32,  109, 105, 110, 79,  99,  99,  117, 114, 115, 61,  34,  48,  34,  32,  47,  62,  13,  10,  32,  32,  32,
    32,  60,  47,  120, 115, 58,  115, 101, 113, 117, 101, 110, 99,  101, 62,  13,  10,  32,  32,  60,  47,  120, 115,
    58,  99,  111, 109, 112, 108, 101, 120, 84,  121, 112, 101, 62,  13,  10,  32,  32,  60,  120, 115, 58,  101, 108,
    101, 109, 101, 110, 116, 32,  110, 97,  109, 101, 61,  34,  68,  97,  116, 97,  116, 121, 112, 101, 84,  101, 115,
    116, 34,  32,  116, 121, 112, 101, 61,  34,  116, 110, 115, 58,  68,  97,  116, 97,  116, 121, 112, 101, 84,  101,
    115, 116, 34,  32,  47,  62,  13,  10,  13,  10,  32,  32,  60,  120, 115, 58,  99,  111, 109, 112, 108, 101, 120,
    84,  121, 112, 101, 32,  110, 97,  109, 101, 61,  34,  76,  105, 115, 116, 79,  102, 68,  97,  116, 97,  116, 121,
    112, 101, 84,  101, 115, 116, 34,  62,  13,  10,  32,  32,  32,  32,  60,  120, 115, 58,  115, 101, 113, 117, 101,
    110, 99,  101, 62,  13,  10,  32,  32,  32,  32,  32,  32,  60,  120, 115, 58,  101, 108, 101, 109, 101, 110, 116,
    32,  110, 97,  109, 101, 61,  34,  68,  97,  116, 97,  116, 121, 112, 101, 84,  101, 115, 116, 34,  32,  116, 121,
    112, 101, 61,  34,  116, 110, 115, 58,  68,  97,  116, 97,  116, 121, 112, 101, 84,  101, 115, 116, 34,  32,  109,
    105, 110, 79,  99,  99,  117, 114, 115, 61,  34,  48,  34,  32,  109, 97,  120, 79,  99,  99,  117, 114, 115, 61,
    34,  117, 110, 98,  111, 117, 110, 100, 101, 100, 34,  32,  110, 105, 108, 108, 97,  98,  108, 101, 61,  34,  116,
    114, 117, 101, 34,  32,  47,  62,  13,  10,  32,  32,  32,  32,  60,  47,  120, 115, 58,  115, 101, 113, 117, 101,
    110, 99,  101, 62,  13,  10,  32,  32,  60,  47,  120, 115, 58,  99,  111, 109, 112, 108, 101, 120, 84,  121, 112,
    101, 62,  13,  10,  32,  32,  60,  120, 115, 58,  101, 108, 101, 109, 101, 110, 116, 32,  110, 97,  109, 101, 61,
    34,  76,  105, 115, 116, 79,  102, 68,  97,  116, 97,  116, 121, 112, 101, 84,  101, 115, 116, 34,  32,  116, 121,
    112, 101, 61,  34,  116, 110, 115, 58,  76,  105, 115, 116, 79,  102, 68,  97,  116, 97,  116, 121, 112, 101, 84,
    101, 115, 116, 34,  32,  110, 105, 108, 108, 97,  98,  108, 101, 61,  34,  116, 114, 117, 101, 34,  62,  60,  47,
    120, 115, 58,  101, 108, 101, 109, 101, 110, 116, 62,  13,  10,  13,  10,  60,  47,  120, 115, 58,  115, 99,  104,
    101, 109, 97,  62};

static UA_StatusCode function_ua_namespace_fordiacNamespace_4_begin(UA_Server *server, UA_UInt16 *ns) {
  UA_StatusCode retVal = UA_STATUSCODE_GOOD;
  UA_VariableAttributes attr = UA_VariableAttributes_default;
  attr.minimumSamplingInterval = 0.000000;
  attr.userAccessLevel = 1;
  attr.accessLevel = 1;
  /* Value rank inherited */
  attr.valueRank = -2;
  attr.dataType = UA_NODEID_NUMERIC(ns[0], 15LU);
  UA_ByteString *variablenode_ns_1_i_23_variant_DataContents = UA_ByteString_new();
  if (!variablenode_ns_1_i_23_variant_DataContents)
    return UA_STATUSCODE_BADOUTOFMEMORY;
  UA_ByteString_init(variablenode_ns_1_i_23_variant_DataContents);
  variablenode_ns_1_i_23_variant_DataContents->length = 1085;
  variablenode_ns_1_i_23_variant_DataContents->data =
      (UA_Byte *) (void *) (uintptr_t) variablenode_ns_1_i_23_variant_DataContents_byteArray;
  UA_Variant_setScalar(&attr.value, variablenode_ns_1_i_23_variant_DataContents, &UA_TYPES[UA_TYPES_BYTESTRING]);
  attr.displayName = UA_LOCALIZEDTEXT("", "fordiacNamespace");
  retVal |= UA_Server_addNode_begin(
      server, UA_NODECLASS_VARIABLE, UA_NODEID_NUMERIC(ns[1], 23LU), UA_NODEID_NUMERIC(ns[0], 92LU),
      UA_NODEID_NUMERIC(ns[0], 47LU), UA_QUALIFIEDNAME(ns[1], "fordiacNamespace"), UA_NODEID_NUMERIC(ns[0], 72LU),
      (const UA_NodeAttributes *) &attr, &UA_TYPES[UA_TYPES_VARIABLEATTRIBUTES], NULL, NULL);
  variablenode_ns_1_i_23_variant_DataContents->data = NULL;
  variablenode_ns_1_i_23_variant_DataContents->length = 0;
  UA_ByteString_delete(variablenode_ns_1_i_23_variant_DataContents);
  return retVal;
}

static UA_StatusCode function_ua_namespace_fordiacNamespace_4_finish(UA_Server *server, UA_UInt16 *ns) {
  return UA_Server_addNode_finish(server, UA_NODEID_NUMERIC(ns[1], 23LU));
}

/* DatatypeTest - ns=1;i=27 */

static UA_StatusCode function_ua_namespace_fordiacNamespace_5_begin(UA_Server *server, UA_UInt16 *ns) {
  UA_StatusCode retVal = UA_STATUSCODE_GOOD;
  UA_VariableAttributes attr = UA_VariableAttributes_default;
  attr.minimumSamplingInterval = 0.000000;
  attr.userAccessLevel = 1;
  attr.accessLevel = 1;
  /* Value rank inherited */
  attr.valueRank = -2;
  attr.dataType = UA_NODEID_NUMERIC(ns[0], 12LU);
  UA_String *variablenode_ns_1_i_27_variant_DataContents = UA_String_new();
  if (!variablenode_ns_1_i_27_variant_DataContents)
    return UA_STATUSCODE_BADOUTOFMEMORY;
  UA_String_init(variablenode_ns_1_i_27_variant_DataContents);
  *variablenode_ns_1_i_27_variant_DataContents = UA_STRING_ALLOC("//xs:element[@name='DatatypeTest']");
  UA_Variant_setScalar(&attr.value, variablenode_ns_1_i_27_variant_DataContents, &UA_TYPES[UA_TYPES_STRING]);
  attr.displayName = UA_LOCALIZEDTEXT("", "DatatypeTest");
  retVal |= UA_Server_addNode_begin(
      server, UA_NODECLASS_VARIABLE, UA_NODEID_NUMERIC(ns[1], 27LU), UA_NODEID_NUMERIC(ns[1], 23LU),
      UA_NODEID_NUMERIC(ns[0], 47LU), UA_QUALIFIEDNAME(ns[1], "DatatypeTest"), UA_NODEID_NUMERIC(ns[0], 69LU),
      (const UA_NodeAttributes *) &attr, &UA_TYPES[UA_TYPES_VARIABLEATTRIBUTES], NULL, NULL);
  UA_String_delete(variablenode_ns_1_i_27_variant_DataContents);
  retVal |= UA_Server_addReference(server, UA_NODEID_NUMERIC(ns[1], 27LU), UA_NODEID_NUMERIC(ns[0], 39LU),
                                   UA_EXPANDEDNODEID_NUMERIC(ns[1], 22LU), false);
  return retVal;
}

static UA_StatusCode function_ua_namespace_fordiacNamespace_5_finish(UA_Server *server, UA_UInt16 *ns) {
  return UA_Server_addNode_finish(server, UA_NODEID_NUMERIC(ns[1], 27LU));
}

/* Deprecated - ns=1;i=26 */

static UA_StatusCode function_ua_namespace_fordiacNamespace_6_begin(UA_Server *server, UA_UInt16 *ns) {
  UA_StatusCode retVal = UA_STATUSCODE_GOOD;
  UA_VariableAttributes attr = UA_VariableAttributes_default;
  attr.minimumSamplingInterval = 0.000000;
  attr.userAccessLevel = 1;
  attr.accessLevel = 1;
  /* Value rank inherited */
  attr.valueRank = -2;
  attr.dataType = UA_NODEID_NUMERIC(ns[0], 1LU);
  UA_Boolean *variablenode_ns_1_i_26_variant_DataContents = UA_Boolean_new();
  if (!variablenode_ns_1_i_26_variant_DataContents)
    return UA_STATUSCODE_BADOUTOFMEMORY;
  UA_Boolean_init(variablenode_ns_1_i_26_variant_DataContents);
  *variablenode_ns_1_i_26_variant_DataContents = (UA_Boolean) true;
  UA_Variant_setScalar(&attr.value, variablenode_ns_1_i_26_variant_DataContents, &UA_TYPES[UA_TYPES_BOOLEAN]);
  attr.displayName = UA_LOCALIZEDTEXT("", "Deprecated");
  retVal |= UA_Server_addNode_begin(
      server, UA_NODECLASS_VARIABLE, UA_NODEID_NUMERIC(ns[1], 26LU), UA_NODEID_NUMERIC(ns[1], 23LU),
      UA_NODEID_NUMERIC(ns[0], 46LU), UA_QUALIFIEDNAME(ns[0], "Deprecated"), UA_NODEID_NUMERIC(ns[0], 68LU),
      (const UA_NodeAttributes *) &attr, &UA_TYPES[UA_TYPES_VARIABLEATTRIBUTES], NULL, NULL);
  UA_Boolean_delete(variablenode_ns_1_i_26_variant_DataContents);
  return retVal;
}

static UA_StatusCode function_ua_namespace_fordiacNamespace_6_finish(UA_Server *server, UA_UInt16 *ns) {
  return UA_Server_addNode_finish(server, UA_NODEID_NUMERIC(ns[1], 26LU));
}

/* NamespaceUri - ns=1;i=25 */

static UA_StatusCode function_ua_namespace_fordiacNamespace_7_begin(UA_Server *server, UA_UInt16 *ns) {
  UA_StatusCode retVal = UA_STATUSCODE_GOOD;
  UA_VariableAttributes attr = UA_VariableAttributes_default;
  attr.minimumSamplingInterval = 0.000000;
  attr.userAccessLevel = 1;
  attr.accessLevel = 1;
  /* Value rank inherited */
  attr.valueRank = -2;
  attr.dataType = UA_NODEID_NUMERIC(ns[0], 12LU);
  UA_String *variablenode_ns_1_i_25_variant_DataContents = UA_String_new();
  if (!variablenode_ns_1_i_25_variant_DataContents)
    return UA_STATUSCODE_BADOUTOFMEMORY;
  UA_String_init(variablenode_ns_1_i_25_variant_DataContents);
  *variablenode_ns_1_i_25_variant_DataContents = UA_STRING_ALLOC("https://git.eclipse.org/4diac/org.eclipse.4diac");
  UA_Variant_setScalar(&attr.value, variablenode_ns_1_i_25_variant_DataContents, &UA_TYPES[UA_TYPES_STRING]);
  attr.displayName = UA_LOCALIZEDTEXT("", "NamespaceUri");
  retVal |= UA_Server_addNode_begin(
      server, UA_NODECLASS_VARIABLE, UA_NODEID_NUMERIC(ns[1], 25LU), UA_NODEID_NUMERIC(ns[1], 23LU),
      UA_NODEID_NUMERIC(ns[0], 46LU), UA_QUALIFIEDNAME(ns[0], "NamespaceUri"), UA_NODEID_NUMERIC(ns[0], 68LU),
      (const UA_NodeAttributes *) &attr, &UA_TYPES[UA_TYPES_VARIABLEATTRIBUTES], NULL, NULL);
  UA_String_delete(variablenode_ns_1_i_25_variant_DataContents);
  return retVal;
}

static UA_StatusCode function_ua_namespace_fordiacNamespace_7_finish(UA_Server *server, UA_UInt16 *ns) {
  return UA_Server_addNode_finish(server, UA_NODEID_NUMERIC(ns[1], 25LU));
}

/* fordiacNamespace - ns=1;i=15 */
static const UA_Byte variablenode_ns_1_i_15_variant_DataContents_byteArray[728] = {
    60,  111, 112, 99,  58,  84,  121, 112, 101, 68,  105, 99,  116, 105, 111, 110, 97,  114, 121, 13,  10,  32,  32,
    120, 109, 108, 110, 115, 58,  111, 112, 99,  61,  34,  104, 116, 116, 112, 58,  47,  47,  111, 112, 99,  102, 111,
    117, 110, 100, 97,  116, 105, 111, 110, 46,  111, 114, 103, 47,  66,  105, 110, 97,  114, 121, 83,  99,  104, 101,
    109, 97,  47,  34,  13,  10,  32,  32,  120, 109, 108, 110, 115, 58,  120, 115, 105, 61,  34,  104, 116, 116, 112,
    58,  47,  47,  119, 119, 119, 46,  119, 51,  46,  111, 114, 103, 47,  50,  48,  48,  49,  47,  88,  77,  76,  83,
    99,  104, 101, 109, 97,  45,  105, 110, 115, 116, 97,  110, 99,  101, 34,  13,  10,  32,  32,  120, 109, 108, 110,
    115, 58,  117, 97,  61,  34,  104, 116, 116, 112, 58,  47,  47,  111, 112, 99,  102, 111, 117, 110, 100, 97,  116,
    105, 111, 110, 46,  111, 114, 103, 47,  85,  65,  47,  34,  13,  10,  32,  32,  120, 109, 108, 110, 115, 58,  116,
    110, 115, 61,  34,  104, 116, 116, 112, 115, 58,  47,  47,  103, 105, 116, 46,  101, 99,  108, 105, 112, 115, 101,
    46,  111, 114, 103, 47,  52,  100, 105, 97,  99,  47,  111, 114, 103, 46,  101, 99,  108, 105, 112, 115, 101, 46,
    52,  100, 105, 97,  99,  34,  13,  10,  32,  32,  68,  101, 102, 97,  117, 108, 116, 66,  121, 116, 101, 79,  114,
    100, 101, 114, 61,  34,  76,  105, 116, 116, 108, 101, 69,  110, 100, 105, 97,  110, 34,  13,  10,  32,  32,  84,
    97,  114, 103, 101, 116, 78,  97,  109, 101, 115, 112, 97,  99,  101, 61,  34,  104, 116, 116, 112, 115, 58,  47,
    47,  103, 105, 116, 46,  101, 99,  108, 105, 112, 115, 101, 46,  111, 114, 103, 47,  52,  100, 105, 97,  99,  47,
    111, 114, 103, 46,  101, 99,  108, 105, 112, 115, 101, 46,  52,  100, 105, 97,  99,  34,  13,  10,  62,  13,  10,
    32,  32,  60,  111, 112, 99,  58,  73,  109, 112, 111, 114, 116, 32,  78,  97,  109, 101, 115, 112, 97,  99,  101,
    61,  34,  104, 116, 116, 112, 58,  47,  47,  111, 112, 99,  102, 111, 117, 110, 100, 97,  116, 105, 111, 110, 46,
    111, 114, 103, 47,  85,  65,  47,  34,  32,  76,  111, 99,  97,  116, 105, 111, 110, 61,  34,  79,  112, 99,  46,
    85,  97,  46,  66,  105, 110, 97,  114, 121, 83,  99,  104, 101, 109, 97,  46,  98,  115, 100, 34,  47,  62,  13,
    10,  13,  10,  32,  32,  60,  111, 112, 99,  58,  83,  116, 114, 117, 99,  116, 117, 114, 101, 100, 84,  121, 112,
    101, 32,  78,  97,  109, 101, 61,  34,  68,  97,  116, 97,  116, 121, 112, 101, 84,  101, 115, 116, 34,  32,  66,
    97,  115, 101, 84,  121, 112, 101, 61,  34,  117, 97,  58,  69,  120, 116, 101, 110, 115, 105, 111, 110, 79,  98,
    106, 101, 99,  116, 34,  62,  13,  10,  32,  32,  32,  32,  60,  111, 112, 99,  58,  70,  105, 101, 108, 100, 32,
    78,  97,  109, 101, 61,  34,  78,  97,  109, 101, 34,  32,  84,  121, 112, 101, 78,  97,  109, 101, 61,  34,  111,
    112, 99,  58,  83,  116, 114, 105, 110, 103, 34,  32,  47,  62,  13,  10,  32,  32,  32,  32,  60,  111, 112, 99,
    58,  70,  105, 101, 108, 100, 32,  78,  97,  109, 101, 61,  34,  65,  103, 101, 34,  32,  84,  121, 112, 101, 78,
    97,  109, 101, 61,  34,  111, 112, 99,  58,  83,  66,  121, 116, 101, 34,  32,  47,  62,  13,  10,  32,  32,  32,
    32,  60,  111, 112, 99,  58,  70,  105, 101, 108, 100, 32,  78,  97,  109, 101, 61,  34,  73,  115, 82,  101, 103,
    105, 115, 116, 101, 114, 101, 100, 34,  32,  84,  121, 112, 101, 78,  97,  109, 101, 61,  34,  111, 112, 99,  58,
    66,  111, 111, 108, 101, 97,  110, 34,  32,  47,  62,  13,  10,  32,  32,  60,  47,  111, 112, 99,  58,  83,  116,
    114, 117, 99,  116, 117, 114, 101, 100, 84,  121, 112, 101, 62,  13,  10,  13,  10,  60,  47,  111, 112, 99,  58,
    84,  121, 112, 101, 68,  105, 99,  116, 105, 111, 110, 97,  114, 121, 62};

static UA_StatusCode function_ua_namespace_fordiacNamespace_8_begin(UA_Server *server, UA_UInt16 *ns) {
  UA_StatusCode retVal = UA_STATUSCODE_GOOD;
  UA_VariableAttributes attr = UA_VariableAttributes_default;
  attr.minimumSamplingInterval = 0.000000;
  attr.userAccessLevel = 1;
  attr.accessLevel = 1;
  /* Value rank inherited */
  attr.valueRank = -2;
  attr.dataType = UA_NODEID_NUMERIC(ns[0], 15LU);
  UA_ByteString *variablenode_ns_1_i_15_variant_DataContents = UA_ByteString_new();
  if (!variablenode_ns_1_i_15_variant_DataContents)
    return UA_STATUSCODE_BADOUTOFMEMORY;
  UA_ByteString_init(variablenode_ns_1_i_15_variant_DataContents);
  variablenode_ns_1_i_15_variant_DataContents->length = 728;
  variablenode_ns_1_i_15_variant_DataContents->data =
      (UA_Byte *) (void *) (uintptr_t) variablenode_ns_1_i_15_variant_DataContents_byteArray;
  UA_Variant_setScalar(&attr.value, variablenode_ns_1_i_15_variant_DataContents, &UA_TYPES[UA_TYPES_BYTESTRING]);
  attr.displayName = UA_LOCALIZEDTEXT("", "fordiacNamespace");
  retVal |= UA_Server_addNode_begin(
      server, UA_NODECLASS_VARIABLE, UA_NODEID_NUMERIC(ns[1], 15LU), UA_NODEID_NUMERIC(ns[0], 93LU),
      UA_NODEID_NUMERIC(ns[0], 47LU), UA_QUALIFIEDNAME(ns[1], "fordiacNamespace"), UA_NODEID_NUMERIC(ns[0], 72LU),
      (const UA_NodeAttributes *) &attr, &UA_TYPES[UA_TYPES_VARIABLEATTRIBUTES], NULL, NULL);
  variablenode_ns_1_i_15_variant_DataContents->data = NULL;
  variablenode_ns_1_i_15_variant_DataContents->length = 0;
  UA_ByteString_delete(variablenode_ns_1_i_15_variant_DataContents);
  return retVal;
}

static UA_StatusCode function_ua_namespace_fordiacNamespace_8_finish(UA_Server *server, UA_UInt16 *ns) {
  return UA_Server_addNode_finish(server, UA_NODEID_NUMERIC(ns[1], 15LU));
}

/* DatatypeTest - ns=1;i=19 */

static UA_StatusCode function_ua_namespace_fordiacNamespace_9_begin(UA_Server *server, UA_UInt16 *ns) {
  UA_StatusCode retVal = UA_STATUSCODE_GOOD;
  UA_VariableAttributes attr = UA_VariableAttributes_default;
  attr.minimumSamplingInterval = 0.000000;
  attr.userAccessLevel = 1;
  attr.accessLevel = 1;
  /* Value rank inherited */
  attr.valueRank = -2;
  attr.dataType = UA_NODEID_NUMERIC(ns[0], 12LU);
  UA_String *variablenode_ns_1_i_19_variant_DataContents = UA_String_new();
  if (!variablenode_ns_1_i_19_variant_DataContents)
    return UA_STATUSCODE_BADOUTOFMEMORY;
  UA_String_init(variablenode_ns_1_i_19_variant_DataContents);
  *variablenode_ns_1_i_19_variant_DataContents = UA_STRING_ALLOC("DatatypeTest");
  UA_Variant_setScalar(&attr.value, variablenode_ns_1_i_19_variant_DataContents, &UA_TYPES[UA_TYPES_STRING]);
  attr.displayName = UA_LOCALIZEDTEXT("", "DatatypeTest");
  retVal |= UA_Server_addNode_begin(
      server, UA_NODECLASS_VARIABLE, UA_NODEID_NUMERIC(ns[1], 19LU), UA_NODEID_NUMERIC(ns[1], 15LU),
      UA_NODEID_NUMERIC(ns[0], 47LU), UA_QUALIFIEDNAME(ns[1], "DatatypeTest"), UA_NODEID_NUMERIC(ns[0], 69LU),
      (const UA_NodeAttributes *) &attr, &UA_TYPES[UA_TYPES_VARIABLEATTRIBUTES], NULL, NULL);
  UA_String_delete(variablenode_ns_1_i_19_variant_DataContents);
  retVal |= UA_Server_addReference(server, UA_NODEID_NUMERIC(ns[1], 19LU), UA_NODEID_NUMERIC(ns[0], 39LU),
                                   UA_EXPANDEDNODEID_NUMERIC(ns[1], 14LU), false);
  return retVal;
}

static UA_StatusCode function_ua_namespace_fordiacNamespace_9_finish(UA_Server *server, UA_UInt16 *ns) {
  return UA_Server_addNode_finish(server, UA_NODEID_NUMERIC(ns[1], 19LU));
}

/* Deprecated - ns=1;i=18 */

static UA_StatusCode function_ua_namespace_fordiacNamespace_10_begin(UA_Server *server, UA_UInt16 *ns) {
  UA_StatusCode retVal = UA_STATUSCODE_GOOD;
  UA_VariableAttributes attr = UA_VariableAttributes_default;
  attr.minimumSamplingInterval = 0.000000;
  attr.userAccessLevel = 1;
  attr.accessLevel = 1;
  /* Value rank inherited */
  attr.valueRank = -2;
  attr.dataType = UA_NODEID_NUMERIC(ns[0], 1LU);
  UA_Boolean *variablenode_ns_1_i_18_variant_DataContents = UA_Boolean_new();
  if (!variablenode_ns_1_i_18_variant_DataContents)
    return UA_STATUSCODE_BADOUTOFMEMORY;
  UA_Boolean_init(variablenode_ns_1_i_18_variant_DataContents);
  *variablenode_ns_1_i_18_variant_DataContents = (UA_Boolean) true;
  UA_Variant_setScalar(&attr.value, variablenode_ns_1_i_18_variant_DataContents, &UA_TYPES[UA_TYPES_BOOLEAN]);
  attr.displayName = UA_LOCALIZEDTEXT("", "Deprecated");
  retVal |= UA_Server_addNode_begin(
      server, UA_NODECLASS_VARIABLE, UA_NODEID_NUMERIC(ns[1], 18LU), UA_NODEID_NUMERIC(ns[1], 15LU),
      UA_NODEID_NUMERIC(ns[0], 46LU), UA_QUALIFIEDNAME(ns[0], "Deprecated"), UA_NODEID_NUMERIC(ns[0], 68LU),
      (const UA_NodeAttributes *) &attr, &UA_TYPES[UA_TYPES_VARIABLEATTRIBUTES], NULL, NULL);
  UA_Boolean_delete(variablenode_ns_1_i_18_variant_DataContents);
  return retVal;
}

static UA_StatusCode function_ua_namespace_fordiacNamespace_10_finish(UA_Server *server, UA_UInt16 *ns) {
  return UA_Server_addNode_finish(server, UA_NODEID_NUMERIC(ns[1], 18LU));
}

/* NamespaceUri - ns=1;i=17 */

static UA_StatusCode function_ua_namespace_fordiacNamespace_11_begin(UA_Server *server, UA_UInt16 *ns) {
  UA_StatusCode retVal = UA_STATUSCODE_GOOD;
  UA_VariableAttributes attr = UA_VariableAttributes_default;
  attr.minimumSamplingInterval = 0.000000;
  attr.userAccessLevel = 1;
  attr.accessLevel = 1;
  /* Value rank inherited */
  attr.valueRank = -2;
  attr.dataType = UA_NODEID_NUMERIC(ns[0], 12LU);
  UA_String *variablenode_ns_1_i_17_variant_DataContents = UA_String_new();
  if (!variablenode_ns_1_i_17_variant_DataContents)
    return UA_STATUSCODE_BADOUTOFMEMORY;
  UA_String_init(variablenode_ns_1_i_17_variant_DataContents);
  *variablenode_ns_1_i_17_variant_DataContents = UA_STRING_ALLOC("https://git.eclipse.org/4diac/org.eclipse.4diac");
  UA_Variant_setScalar(&attr.value, variablenode_ns_1_i_17_variant_DataContents, &UA_TYPES[UA_TYPES_STRING]);
  attr.displayName = UA_LOCALIZEDTEXT("", "NamespaceUri");
  retVal |= UA_Server_addNode_begin(
      server, UA_NODECLASS_VARIABLE, UA_NODEID_NUMERIC(ns[1], 17LU), UA_NODEID_NUMERIC(ns[1], 15LU),
      UA_NODEID_NUMERIC(ns[0], 46LU), UA_QUALIFIEDNAME(ns[0], "NamespaceUri"), UA_NODEID_NUMERIC(ns[0], 68LU),
      (const UA_NodeAttributes *) &attr, &UA_TYPES[UA_TYPES_VARIABLEATTRIBUTES], NULL, NULL);
  UA_String_delete(variablenode_ns_1_i_17_variant_DataContents);
  return retVal;
}

static UA_StatusCode function_ua_namespace_fordiacNamespace_11_finish(UA_Server *server, UA_UInt16 *ns) {
  return UA_Server_addNode_finish(server, UA_NODEID_NUMERIC(ns[1], 17LU));
}

/* TestObject - ns=1;i=1 */

static UA_StatusCode function_ua_namespace_fordiacNamespace_12_begin(UA_Server *server, UA_UInt16 *ns) {
  UA_StatusCode retVal = UA_STATUSCODE_GOOD;
  UA_ObjectTypeAttributes attr = UA_ObjectTypeAttributes_default;
  attr.displayName = UA_LOCALIZEDTEXT("", "TestObject");
#ifdef UA_ENABLE_NODESET_COMPILER_DESCRIPTIONS
  attr.description = UA_LOCALIZEDTEXT("", "Object to test in 4diac");
#endif
  retVal |= UA_Server_addNode_begin(
      server, UA_NODECLASS_OBJECTTYPE, UA_NODEID_NUMERIC(ns[1], 1LU), UA_NODEID_NUMERIC(ns[0], 58LU),
      UA_NODEID_NUMERIC(ns[0], 45LU), UA_QUALIFIEDNAME(ns[1], "TestObject"), UA_NODEID_NULL,
      (const UA_NodeAttributes *) &attr, &UA_TYPES[UA_TYPES_OBJECTTYPEATTRIBUTES], NULL, NULL);
  return retVal;
}

static UA_StatusCode function_ua_namespace_fordiacNamespace_12_finish(UA_Server *server, UA_UInt16 *ns) {
  return UA_Server_addNode_finish(server, UA_NODEID_NUMERIC(ns[1], 1LU));
}

/* TestMethod2 - ns=1;i=7 */

static UA_StatusCode function_ua_namespace_fordiacNamespace_13_begin(UA_Server *server, UA_UInt16 *ns) {
#ifdef UA_ENABLE_METHODCALLS
  UA_StatusCode retVal = UA_STATUSCODE_GOOD;
  UA_MethodAttributes attr = UA_MethodAttributes_default;
  attr.executable = true;
  attr.userExecutable = true;
  attr.displayName = UA_LOCALIZEDTEXT("", "TestMethod2");
  retVal |=
      UA_Server_addNode_begin(server, UA_NODECLASS_METHOD, UA_NODEID_NUMERIC(ns[1], 7LU), UA_NODEID_NUMERIC(ns[1], 1LU),
                              UA_NODEID_NUMERIC(ns[0], 47LU), UA_QUALIFIEDNAME(ns[1], "TestMethod2"), UA_NODEID_NULL,
                              (const UA_NodeAttributes *) &attr, &UA_TYPES[UA_TYPES_METHODATTRIBUTES], NULL, NULL);
  retVal |= UA_Server_addReference(server, UA_NODEID_NUMERIC(ns[1], 7LU), UA_NODEID_NUMERIC(ns[0], 37LU),
                                   UA_EXPANDEDNODEID_NUMERIC(ns[0], 78LU), true);
  return retVal;
#else
  return UA_STATUSCODE_GOOD;
#endif /* UA_ENABLE_METHODCALLS */
}

static UA_StatusCode function_ua_namespace_fordiacNamespace_13_finish(UA_Server *server, UA_UInt16 *ns) {
#ifdef UA_ENABLE_METHODCALLS
  return UA_Server_addMethodNode_finish(server, UA_NODEID_NUMERIC(ns[1], 7LU), NULL, 0, NULL, 0, NULL);
#else
  return UA_STATUSCODE_GOOD;
#endif /* UA_ENABLE_METHODCALLS */
}

/* OutputArguments - ns=1;i=9 */

static UA_StatusCode function_ua_namespace_fordiacNamespace_14_begin(UA_Server *server, UA_UInt16 *ns) {
#ifdef UA_ENABLE_METHODCALLS
  UA_StatusCode retVal = UA_STATUSCODE_GOOD;
  UA_VariableAttributes attr = UA_VariableAttributes_default;
  attr.minimumSamplingInterval = 0.000000;
  attr.userAccessLevel = 1;
  attr.accessLevel = 1;
  attr.valueRank = 1;
  attr.arrayDimensionsSize = 1;
  UA_UInt32 arrayDimensions[1];
  arrayDimensions[0] = 0;
  attr.arrayDimensions = &arrayDimensions[0];
  attr.dataType = UA_NODEID_NUMERIC(ns[0], 296LU);
  UA_Argument variablenode_ns_1_i_9_variant_DataContents[1];

  UA_init(&variablenode_ns_1_i_9_variant_DataContents[0], &UA_TYPES[UA_TYPES_ARGUMENT]);
  variablenode_ns_1_i_9_variant_DataContents[0].name = UA_STRING("OutputArgument");
  variablenode_ns_1_i_9_variant_DataContents[0].dataType = UA_NODEID_NUMERIC(ns[0], 6LU);
  variablenode_ns_1_i_9_variant_DataContents[0].valueRank = (UA_Int32) -1;
  UA_Variant_setArray(&attr.value, &variablenode_ns_1_i_9_variant_DataContents, (UA_Int32) 1,
                      &UA_TYPES[UA_TYPES_ARGUMENT]);
  attr.displayName = UA_LOCALIZEDTEXT("", "OutputArguments");
  retVal |= UA_Server_addNode_begin(
      server, UA_NODECLASS_VARIABLE, UA_NODEID_NUMERIC(ns[1], 9LU), UA_NODEID_NUMERIC(ns[1], 7LU),
      UA_NODEID_NUMERIC(ns[0], 46LU), UA_QUALIFIEDNAME(ns[0], "OutputArguments"), UA_NODEID_NUMERIC(ns[0], 68LU),
      (const UA_NodeAttributes *) &attr, &UA_TYPES[UA_TYPES_VARIABLEATTRIBUTES], NULL, NULL);

  retVal |= UA_Server_addReference(server, UA_NODEID_NUMERIC(ns[1], 9LU), UA_NODEID_NUMERIC(ns[0], 37LU),
                                   UA_EXPANDEDNODEID_NUMERIC(ns[0], 78LU), true);
  return retVal;
#else
  return UA_STATUSCODE_GOOD;
#endif /* UA_ENABLE_METHODCALLS */
}

static UA_StatusCode function_ua_namespace_fordiacNamespace_14_finish(UA_Server *server, UA_UInt16 *ns) {
#ifdef UA_ENABLE_METHODCALLS
  return UA_Server_addNode_finish(server, UA_NODEID_NUMERIC(ns[1], 9LU));
#else
  return UA_STATUSCODE_GOOD;
#endif /* UA_ENABLE_METHODCALLS */
}

/* InputArguments - ns=1;i=8 */

static UA_StatusCode function_ua_namespace_fordiacNamespace_15_begin(UA_Server *server, UA_UInt16 *ns) {
#ifdef UA_ENABLE_METHODCALLS
  UA_StatusCode retVal = UA_STATUSCODE_GOOD;
  UA_VariableAttributes attr = UA_VariableAttributes_default;
  attr.minimumSamplingInterval = 0.000000;
  attr.userAccessLevel = 1;
  attr.accessLevel = 1;
  attr.valueRank = 1;
  attr.arrayDimensionsSize = 1;
  UA_UInt32 arrayDimensions[1];
  arrayDimensions[0] = 0;
  attr.arrayDimensions = &arrayDimensions[0];
  attr.dataType = UA_NODEID_NUMERIC(ns[0], 296LU);
  UA_Argument variablenode_ns_1_i_8_variant_DataContents[1];

  UA_init(&variablenode_ns_1_i_8_variant_DataContents[0], &UA_TYPES[UA_TYPES_ARGUMENT]);
  variablenode_ns_1_i_8_variant_DataContents[0].name = UA_STRING("InputArgument");
  variablenode_ns_1_i_8_variant_DataContents[0].dataType = UA_NODEID_NUMERIC(ns[0], 6LU);
  variablenode_ns_1_i_8_variant_DataContents[0].valueRank = (UA_Int32) -1;
  UA_Variant_setArray(&attr.value, &variablenode_ns_1_i_8_variant_DataContents, (UA_Int32) 1,
                      &UA_TYPES[UA_TYPES_ARGUMENT]);
  attr.displayName = UA_LOCALIZEDTEXT("", "InputArguments");
  retVal |= UA_Server_addNode_begin(
      server, UA_NODECLASS_VARIABLE, UA_NODEID_NUMERIC(ns[1], 8LU), UA_NODEID_NUMERIC(ns[1], 7LU),
      UA_NODEID_NUMERIC(ns[0], 46LU), UA_QUALIFIEDNAME(ns[0], "InputArguments"), UA_NODEID_NUMERIC(ns[0], 68LU),
      (const UA_NodeAttributes *) &attr, &UA_TYPES[UA_TYPES_VARIABLEATTRIBUTES], NULL, NULL);

  retVal |= UA_Server_addReference(server, UA_NODEID_NUMERIC(ns[1], 8LU), UA_NODEID_NUMERIC(ns[0], 37LU),
                                   UA_EXPANDEDNODEID_NUMERIC(ns[0], 78LU), true);
  return retVal;
#else
  return UA_STATUSCODE_GOOD;
#endif /* UA_ENABLE_METHODCALLS */
}

static UA_StatusCode function_ua_namespace_fordiacNamespace_15_finish(UA_Server *server, UA_UInt16 *ns) {
#ifdef UA_ENABLE_METHODCALLS
  return UA_Server_addNode_finish(server, UA_NODEID_NUMERIC(ns[1], 8LU));
#else
  return UA_STATUSCODE_GOOD;
#endif /* UA_ENABLE_METHODCALLS */
}

/* TestMethod - ns=1;i=4 */

static UA_StatusCode function_ua_namespace_fordiacNamespace_16_begin(UA_Server *server, UA_UInt16 *ns) {
#ifdef UA_ENABLE_METHODCALLS
  UA_StatusCode retVal = UA_STATUSCODE_GOOD;
  UA_MethodAttributes attr = UA_MethodAttributes_default;
  attr.executable = true;
  attr.userExecutable = true;
  attr.displayName = UA_LOCALIZEDTEXT("", "TestMethod");
  retVal |=
      UA_Server_addNode_begin(server, UA_NODECLASS_METHOD, UA_NODEID_NUMERIC(ns[1], 4LU), UA_NODEID_NUMERIC(ns[1], 1LU),
                              UA_NODEID_NUMERIC(ns[0], 47LU), UA_QUALIFIEDNAME(ns[1], "TestMethod"), UA_NODEID_NULL,
                              (const UA_NodeAttributes *) &attr, &UA_TYPES[UA_TYPES_METHODATTRIBUTES], NULL, NULL);
  retVal |= UA_Server_addReference(server, UA_NODEID_NUMERIC(ns[1], 4LU), UA_NODEID_NUMERIC(ns[0], 37LU),
                                   UA_EXPANDEDNODEID_NUMERIC(ns[0], 78LU), true);
  return retVal;
#else
  return UA_STATUSCODE_GOOD;
#endif /* UA_ENABLE_METHODCALLS */
}

static UA_StatusCode function_ua_namespace_fordiacNamespace_16_finish(UA_Server *server, UA_UInt16 *ns) {
#ifdef UA_ENABLE_METHODCALLS
  return UA_Server_addMethodNode_finish(server, UA_NODEID_NUMERIC(ns[1], 4LU), NULL, 0, NULL, 0, NULL);
#else
  return UA_STATUSCODE_GOOD;
#endif /* UA_ENABLE_METHODCALLS */
}

/* OutputArguments - ns=1;i=6 */

static UA_StatusCode function_ua_namespace_fordiacNamespace_17_begin(UA_Server *server, UA_UInt16 *ns) {
#ifdef UA_ENABLE_METHODCALLS
  UA_StatusCode retVal = UA_STATUSCODE_GOOD;
  UA_VariableAttributes attr = UA_VariableAttributes_default;
  attr.minimumSamplingInterval = 0.000000;
  attr.userAccessLevel = 1;
  attr.accessLevel = 1;
  attr.valueRank = 1;
  attr.arrayDimensionsSize = 1;
  UA_UInt32 arrayDimensions[1];
  arrayDimensions[0] = 0;
  attr.arrayDimensions = &arrayDimensions[0];
  attr.dataType = UA_NODEID_NUMERIC(ns[0], 296LU);
  UA_Argument variablenode_ns_1_i_6_variant_DataContents[1];

  UA_init(&variablenode_ns_1_i_6_variant_DataContents[0], &UA_TYPES[UA_TYPES_ARGUMENT]);
  variablenode_ns_1_i_6_variant_DataContents[0].name = UA_STRING("OutputArgument");
  variablenode_ns_1_i_6_variant_DataContents[0].dataType = UA_NODEID_NUMERIC(ns[0], 6LU);
  variablenode_ns_1_i_6_variant_DataContents[0].valueRank = (UA_Int32) -1;
  UA_Variant_setArray(&attr.value, &variablenode_ns_1_i_6_variant_DataContents, (UA_Int32) 1,
                      &UA_TYPES[UA_TYPES_ARGUMENT]);
  attr.displayName = UA_LOCALIZEDTEXT("", "OutputArguments");
  retVal |= UA_Server_addNode_begin(
      server, UA_NODECLASS_VARIABLE, UA_NODEID_NUMERIC(ns[1], 6LU), UA_NODEID_NUMERIC(ns[1], 4LU),
      UA_NODEID_NUMERIC(ns[0], 46LU), UA_QUALIFIEDNAME(ns[0], "OutputArguments"), UA_NODEID_NUMERIC(ns[0], 68LU),
      (const UA_NodeAttributes *) &attr, &UA_TYPES[UA_TYPES_VARIABLEATTRIBUTES], NULL, NULL);

  retVal |= UA_Server_addReference(server, UA_NODEID_NUMERIC(ns[1], 6LU), UA_NODEID_NUMERIC(ns[0], 37LU),
                                   UA_EXPANDEDNODEID_NUMERIC(ns[0], 78LU), true);
  return retVal;
#else
  return UA_STATUSCODE_GOOD;
#endif /* UA_ENABLE_METHODCALLS */
}

static UA_StatusCode function_ua_namespace_fordiacNamespace_17_finish(UA_Server *server, UA_UInt16 *ns) {
#ifdef UA_ENABLE_METHODCALLS
  return UA_Server_addNode_finish(server, UA_NODEID_NUMERIC(ns[1], 6LU));
#else
  return UA_STATUSCODE_GOOD;
#endif /* UA_ENABLE_METHODCALLS */
}

/* InputArguments - ns=1;i=5 */

static UA_StatusCode function_ua_namespace_fordiacNamespace_18_begin(UA_Server *server, UA_UInt16 *ns) {
#ifdef UA_ENABLE_METHODCALLS
  UA_StatusCode retVal = UA_STATUSCODE_GOOD;
  UA_VariableAttributes attr = UA_VariableAttributes_default;
  attr.minimumSamplingInterval = 0.000000;
  attr.userAccessLevel = 1;
  attr.accessLevel = 1;
  attr.valueRank = 1;
  attr.arrayDimensionsSize = 1;
  UA_UInt32 arrayDimensions[1];
  arrayDimensions[0] = 0;
  attr.arrayDimensions = &arrayDimensions[0];
  attr.dataType = UA_NODEID_NUMERIC(ns[0], 296LU);
  UA_Argument variablenode_ns_1_i_5_variant_DataContents[1];

  UA_init(&variablenode_ns_1_i_5_variant_DataContents[0], &UA_TYPES[UA_TYPES_ARGUMENT]);
  variablenode_ns_1_i_5_variant_DataContents[0].name = UA_STRING("InputArgument");
  variablenode_ns_1_i_5_variant_DataContents[0].dataType = UA_NODEID_NUMERIC(ns[0], 6LU);
  variablenode_ns_1_i_5_variant_DataContents[0].valueRank = (UA_Int32) -1;
  UA_Variant_setArray(&attr.value, &variablenode_ns_1_i_5_variant_DataContents, (UA_Int32) 1,
                      &UA_TYPES[UA_TYPES_ARGUMENT]);
  attr.displayName = UA_LOCALIZEDTEXT("", "InputArguments");
  retVal |= UA_Server_addNode_begin(
      server, UA_NODECLASS_VARIABLE, UA_NODEID_NUMERIC(ns[1], 5LU), UA_NODEID_NUMERIC(ns[1], 4LU),
      UA_NODEID_NUMERIC(ns[0], 46LU), UA_QUALIFIEDNAME(ns[0], "InputArguments"), UA_NODEID_NUMERIC(ns[0], 68LU),
      (const UA_NodeAttributes *) &attr, &UA_TYPES[UA_TYPES_VARIABLEATTRIBUTES], NULL, NULL);

  retVal |= UA_Server_addReference(server, UA_NODEID_NUMERIC(ns[1], 5LU), UA_NODEID_NUMERIC(ns[0], 37LU),
                                   UA_EXPANDEDNODEID_NUMERIC(ns[0], 78LU), true);
  return retVal;
#else
  return UA_STATUSCODE_GOOD;
#endif /* UA_ENABLE_METHODCALLS */
}

static UA_StatusCode function_ua_namespace_fordiacNamespace_18_finish(UA_Server *server, UA_UInt16 *ns) {
#ifdef UA_ENABLE_METHODCALLS
  return UA_Server_addNode_finish(server, UA_NODEID_NUMERIC(ns[1], 5LU));
#else
  return UA_STATUSCODE_GOOD;
#endif /* UA_ENABLE_METHODCALLS */
}

/* Variable2 - ns=1;i=3 */

static UA_StatusCode function_ua_namespace_fordiacNamespace_19_begin(UA_Server *server, UA_UInt16 *ns) {
  UA_StatusCode retVal = UA_STATUSCODE_GOOD;
  UA_VariableAttributes attr = UA_VariableAttributes_default;
  attr.minimumSamplingInterval = 0.000000;
  attr.userAccessLevel = 1;
  attr.accessLevel = 1;
  /* Value rank inherited */
  attr.valueRank = -2;
  attr.dataType = UA_NODEID_NUMERIC(ns[0], 6LU);
  attr.displayName = UA_LOCALIZEDTEXT("", "Variable2");
#ifdef UA_ENABLE_NODESET_COMPILER_DESCRIPTIONS
  attr.description = UA_LOCALIZEDTEXT("", "Variable 2");
#endif
  retVal |= UA_Server_addNode_begin(
      server, UA_NODECLASS_VARIABLE, UA_NODEID_NUMERIC(ns[1], 3LU), UA_NODEID_NUMERIC(ns[1], 1LU),
      UA_NODEID_NUMERIC(ns[0], 47LU), UA_QUALIFIEDNAME(ns[1], "Variable2"), UA_NODEID_NUMERIC(ns[0], 63LU),
      (const UA_NodeAttributes *) &attr, &UA_TYPES[UA_TYPES_VARIABLEATTRIBUTES], NULL, NULL);
  retVal |= UA_Server_addReference(server, UA_NODEID_NUMERIC(ns[1], 3LU), UA_NODEID_NUMERIC(ns[0], 37LU),
                                   UA_EXPANDEDNODEID_NUMERIC(ns[0], 78LU), true);
  return retVal;
}

static UA_StatusCode function_ua_namespace_fordiacNamespace_19_finish(UA_Server *server, UA_UInt16 *ns) {
  return UA_Server_addNode_finish(server, UA_NODEID_NUMERIC(ns[1], 3LU));
}

/* Variable1 - ns=1;i=2 */

static UA_StatusCode function_ua_namespace_fordiacNamespace_20_begin(UA_Server *server, UA_UInt16 *ns) {
  UA_StatusCode retVal = UA_STATUSCODE_GOOD;
  UA_VariableAttributes attr = UA_VariableAttributes_default;
  attr.minimumSamplingInterval = 0.000000;
  attr.userAccessLevel = 1;
  attr.accessLevel = 1;
  /* Value rank inherited */
  attr.valueRank = -2;
  attr.dataType = UA_NODEID_NUMERIC(ns[0], 6LU);
  attr.displayName = UA_LOCALIZEDTEXT("", "Variable1");
#ifdef UA_ENABLE_NODESET_COMPILER_DESCRIPTIONS
  attr.description = UA_LOCALIZEDTEXT("", "Variable 1");
#endif
  retVal |= UA_Server_addNode_begin(
      server, UA_NODECLASS_VARIABLE, UA_NODEID_NUMERIC(ns[1], 2LU), UA_NODEID_NUMERIC(ns[1], 1LU),
      UA_NODEID_NUMERIC(ns[0], 47LU), UA_QUALIFIEDNAME(ns[1], "Variable1"), UA_NODEID_NUMERIC(ns[0], 63LU),
      (const UA_NodeAttributes *) &attr, &UA_TYPES[UA_TYPES_VARIABLEATTRIBUTES], NULL, NULL);
  retVal |= UA_Server_addReference(server, UA_NODEID_NUMERIC(ns[1], 2LU), UA_NODEID_NUMERIC(ns[0], 37LU),
                                   UA_EXPANDEDNODEID_NUMERIC(ns[0], 78LU), true);
  return retVal;
}

static UA_StatusCode function_ua_namespace_fordiacNamespace_20_finish(UA_Server *server, UA_UInt16 *ns) {
  return UA_Server_addNode_finish(server, UA_NODEID_NUMERIC(ns[1], 2LU));
}

UA_StatusCode ua_namespace_fordiacNamespace(UA_Server *server) {
  UA_StatusCode retVal = UA_STATUSCODE_GOOD;
  /* Use namespace ids generated by the server */
  UA_UInt16 ns[2];
  ns[0] = UA_Server_addNamespace(server, "http://opcfoundation.org/UA/");
  ns[1] = UA_Server_addNamespace(server, "https://git.eclipse.org/4diac/org.eclipse.4diac");

  /* Load custom datatype definitions into the server */
  if ((retVal = function_ua_namespace_fordiacNamespace_0_begin(server, ns)) != UA_STATUSCODE_GOOD)
    return retVal;
  if ((retVal = function_ua_namespace_fordiacNamespace_1_begin(server, ns)) != UA_STATUSCODE_GOOD)
    return retVal;
  if ((retVal = function_ua_namespace_fordiacNamespace_2_begin(server, ns)) != UA_STATUSCODE_GOOD)
    return retVal;
  if ((retVal = function_ua_namespace_fordiacNamespace_3_begin(server, ns)) != UA_STATUSCODE_GOOD)
    return retVal;
  if ((retVal = function_ua_namespace_fordiacNamespace_4_begin(server, ns)) != UA_STATUSCODE_GOOD)
    return retVal;
  if ((retVal = function_ua_namespace_fordiacNamespace_5_begin(server, ns)) != UA_STATUSCODE_GOOD)
    return retVal;
  if ((retVal = function_ua_namespace_fordiacNamespace_6_begin(server, ns)) != UA_STATUSCODE_GOOD)
    return retVal;
  if ((retVal = function_ua_namespace_fordiacNamespace_7_begin(server, ns)) != UA_STATUSCODE_GOOD)
    return retVal;
  if ((retVal = function_ua_namespace_fordiacNamespace_8_begin(server, ns)) != UA_STATUSCODE_GOOD)
    return retVal;
  if ((retVal = function_ua_namespace_fordiacNamespace_9_begin(server, ns)) != UA_STATUSCODE_GOOD)
    return retVal;
  if ((retVal = function_ua_namespace_fordiacNamespace_10_begin(server, ns)) != UA_STATUSCODE_GOOD)
    return retVal;
  if ((retVal = function_ua_namespace_fordiacNamespace_11_begin(server, ns)) != UA_STATUSCODE_GOOD)
    return retVal;
  if ((retVal = function_ua_namespace_fordiacNamespace_12_begin(server, ns)) != UA_STATUSCODE_GOOD)
    return retVal;
  if ((retVal = function_ua_namespace_fordiacNamespace_13_begin(server, ns)) != UA_STATUSCODE_GOOD)
    return retVal;
  if ((retVal = function_ua_namespace_fordiacNamespace_14_begin(server, ns)) != UA_STATUSCODE_GOOD)
    return retVal;
  if ((retVal = function_ua_namespace_fordiacNamespace_15_begin(server, ns)) != UA_STATUSCODE_GOOD)
    return retVal;
  if ((retVal = function_ua_namespace_fordiacNamespace_16_begin(server, ns)) != UA_STATUSCODE_GOOD)
    return retVal;
  if ((retVal = function_ua_namespace_fordiacNamespace_17_begin(server, ns)) != UA_STATUSCODE_GOOD)
    return retVal;
  if ((retVal = function_ua_namespace_fordiacNamespace_18_begin(server, ns)) != UA_STATUSCODE_GOOD)
    return retVal;
  if ((retVal = function_ua_namespace_fordiacNamespace_19_begin(server, ns)) != UA_STATUSCODE_GOOD)
    return retVal;
  if ((retVal = function_ua_namespace_fordiacNamespace_20_begin(server, ns)) != UA_STATUSCODE_GOOD)
    return retVal;
  if ((retVal = function_ua_namespace_fordiacNamespace_20_finish(server, ns)) != UA_STATUSCODE_GOOD)
    return retVal;
  if ((retVal = function_ua_namespace_fordiacNamespace_19_finish(server, ns)) != UA_STATUSCODE_GOOD)
    return retVal;
  if ((retVal = function_ua_namespace_fordiacNamespace_18_finish(server, ns)) != UA_STATUSCODE_GOOD)
    return retVal;
  if ((retVal = function_ua_namespace_fordiacNamespace_17_finish(server, ns)) != UA_STATUSCODE_GOOD)
    return retVal;
  if ((retVal = function_ua_namespace_fordiacNamespace_16_finish(server, ns)) != UA_STATUSCODE_GOOD)
    return retVal;
  if ((retVal = function_ua_namespace_fordiacNamespace_15_finish(server, ns)) != UA_STATUSCODE_GOOD)
    return retVal;
  if ((retVal = function_ua_namespace_fordiacNamespace_14_finish(server, ns)) != UA_STATUSCODE_GOOD)
    return retVal;
  if ((retVal = function_ua_namespace_fordiacNamespace_13_finish(server, ns)) != UA_STATUSCODE_GOOD)
    return retVal;
  if ((retVal = function_ua_namespace_fordiacNamespace_12_finish(server, ns)) != UA_STATUSCODE_GOOD)
    return retVal;
  if ((retVal = function_ua_namespace_fordiacNamespace_11_finish(server, ns)) != UA_STATUSCODE_GOOD)
    return retVal;
  if ((retVal = function_ua_namespace_fordiacNamespace_10_finish(server, ns)) != UA_STATUSCODE_GOOD)
    return retVal;
  if ((retVal = function_ua_namespace_fordiacNamespace_9_finish(server, ns)) != UA_STATUSCODE_GOOD)
    return retVal;
  if ((retVal = function_ua_namespace_fordiacNamespace_8_finish(server, ns)) != UA_STATUSCODE_GOOD)
    return retVal;
  if ((retVal = function_ua_namespace_fordiacNamespace_7_finish(server, ns)) != UA_STATUSCODE_GOOD)
    return retVal;
  if ((retVal = function_ua_namespace_fordiacNamespace_6_finish(server, ns)) != UA_STATUSCODE_GOOD)
    return retVal;
  if ((retVal = function_ua_namespace_fordiacNamespace_5_finish(server, ns)) != UA_STATUSCODE_GOOD)
    return retVal;
  if ((retVal = function_ua_namespace_fordiacNamespace_4_finish(server, ns)) != UA_STATUSCODE_GOOD)
    return retVal;
  if ((retVal = function_ua_namespace_fordiacNamespace_3_finish(server, ns)) != UA_STATUSCODE_GOOD)
    return retVal;
  if ((retVal = function_ua_namespace_fordiacNamespace_2_finish(server, ns)) != UA_STATUSCODE_GOOD)
    return retVal;
  if ((retVal = function_ua_namespace_fordiacNamespace_1_finish(server, ns)) != UA_STATUSCODE_GOOD)
    return retVal;
  if ((retVal = function_ua_namespace_fordiacNamespace_0_finish(server, ns)) != UA_STATUSCODE_GOOD)
    return retVal;
  return retVal;
}
